(function($){
	$.fn.myScroll = function(options){
	var defaults = {
		speed:40,
		rowHeight:24
	};
	var opts = $.extend({}, defaults, options),intId = [];
	var clientH = document.documentElement.clientHeight/100;
	opts.rowHeight  = clientH*opts.rowHeight;

	function marquee(obj, step){

		obj.find("ul").animate({
			marginTop: '-=1'
		},0,function(){
				var s = Math.abs(parseInt($(this).css("margin-top")));
				if(s >= step){
					$(this).find("li").slice(0, 1).appendTo($(this));
					$(this).css("margin-top", 0);
				}
			});
		}

		this.each(function(i){
			var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
			intId[i] = setInterval(function(){
				if(_this.find("ul").height()<=_this.height()){
					clearInterval(intId[i]);
				}else{
					marquee(_this, sh);
				}
			}, speed);

			_this.hover(function(){
				clearInterval(intId[i]);
			},function(){
				intId[i] = setInterval(function(){
					if(_this.find("ul").height()<=_this.height()){
						clearInterval(intId[i]);
					}else{
						marquee(_this, sh);
					}
				}, speed);
			});

		});
	}
})(jQuery);

$(function() {
            $(".about-coop-content").myScroll({
                speed: 10,
                rowHeight: 9.5
            });
               var userAgent = navigator.userAgent;
            //   console.log(userAgent.indexOf("Firefox") > -1);
             if (userAgent.indexOf("Firefox") > -1||userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1) {
               var windowWidth = $(window).width();
               if(windowWidth < 1600){
               $("#Component svg circle").eq(0).css({
               "transform-origin": "44% 47.5% ",
               "transform": "rotate(225deg) "
             });
               $("#Component svg circle").eq(1).css({
               "transform-origin": "44% 47.5% ",
               "transform": "rotate(225deg) "
             });
             $("#Component .img-wrapper").get(0).style.setProperty('left', '115px', 'important');
             $("#Component .img-wrapper").get(0).style.setProperty('top', '115px', 'important');
               }
             }
        });

$(document).ready(function () {
    let partnerDiv_height = $('#partnersDiv').height();
    // console.log(partnerDiv_height);
    if (partnerDiv_height > 600){
        $('#partnersDiv').addClass("patenerDiv")
    }
});